package org.amos.gen.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.amos.core.basic.base.BaseEntity;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_gen_table_info")
@Schema(name = "代码生成数据表信息配置")
public class GenTableInfo extends BaseEntity {

    @Schema(description = "方案名称")
    private String name;

    @Schema(description = "数据源ID")
    private Long dataSourceId;

    @Schema(description = "模板组ID")
    private Long groupId;

    @Schema(description = "表名")
    private String tableName;

    @Schema(description = "作者")
    private String author;

    @Schema(description = "表名前缀")
    private String tablePrefix;

    @Schema(description = "类名")
    private String className;

    @Schema(description = "包名")
    private String packageName;

    @Schema(description = "生成路径")
    private String path;

    @Schema(description = "模块名称")
    private String moduleName;

    @TableField(exist = false)
    private List<GenColumnInfo> columns;

}
